package com.simon.app.service;

import com.simon.app.entiy.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("OCTOBER-USER")
public interface UserService {
    @RequestMapping(value = "/home", method = RequestMethod.GET)
    public String hello();

    @RequestMapping(value = "home2", method = RequestMethod.GET)
    public String hello(@RequestHeader("name") String name, @RequestHeader("cc") String cc);

    @RequestMapping(value = "home3", method = RequestMethod.POST)
    public User   hello(@RequestBody User user);

    @RequestMapping(value = "home4", method = RequestMethod.GET)
    public String hello(@RequestParam("name") String name);
}
